<template>
    <el-table ref="table" class="oc-table" v-bind="$attrs" v-on="$listeners">
        <template v-for="(index, name) in $slots" :slot="name">
            <slot :name="name" />
        </template>
    </el-table>
</template>
<script>
export default {
    name: 'ScTable',
    data () {
        return {

        }
    }
}
</script>
<style lang="scss" scoped>
.oc-table {
    background: #323642;
    &::before {
        display: none;
    }
    ::v-deep {
        thead {
            tr {
                background: #323642;
                th {
                    background: #323642;
                    height: 36px;
                    padding: 0;
                    border: none;
                    .cell {
                        font-size: 14px;
                        font-family: PingFangSC-Regular, PingFang SC;
                        font-weight: 400;
                        color: #D9DCEA;
                        line-height: 36px;
                    }
                }
            }
        }
        tbody {
            tr {
                height: 44px;
                background: #323642;
                &:hover td {
                    background: #323642;
                }
                td {
                    padding: 0;
                    border-bottom: 6px solid #323642;
                    .cell {
                        // display: flex;
                        // align-items: center;
                        height: 38px;
                        background: #2B2E39;
                        color: #ADB1C2;
                        line-height: 38px;
                        width: 100% !important;
                    }
                    &:nth-of-type(1) .cell {
                        border-top-left-radius: 6px;
                        border-bottom-left-radius: 6px;
                    }

                    &:nth-last-of-type(1) .cell {
                        border-top-right-radius: 6px;
                        border-bottom-right-radius: 6px;
                    }
                    
                }
            }
            .el-table__expanded-cell {
                background: transparent;
            }
        }
    }
}
</style>